Skip to content

Clarify KVM import template requirement - #13126

Open
andrijapanicsb wants to merge 4 commits into
4.22from
fix/clarify-kvm-import-templateid-requirement
Open

Clarify KVM import template requirement#13126
andrijapanicsb wants to merge 4 commits into
4.22from
fix/clarify-kvm-import-templateid-requirement

Conversation

@andrijapanicsb

@andrijapanicsb andrijapanicsb commented May 7, 2026

Copy link
Copy Markdown
Contributor

Description

importUnmanagedInstance documents templateid as an optional parameter, but KVM unmanaged instance import currently requires a template and fails when one is not supplied.

This updates the generated API parameter description for templateid to explicitly mention that it is required when importing an unmanaged KVM instance. It avoids the current mismatch between API docs and runtime behavior without changing import semantics.

Fixes #13067

Tests

Added ImportUnmanagedInstanceCmdTest coverage to verify the templateid API parameter description includes the KVM requirement. Deleted

@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.92%. Comparing base (10d3e11) to head (850ab46).
⚠️ Report is 1 commits behind head on 4.22.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.22   #13126   +/-   ##
=========================================
  Coverage     17.91%   17.92%           
- Complexity    16109    16113    +4     
=========================================
  Files          5928     5928           
  Lines        534964   534964           
  Branches      65463    65463           
=========================================
+ Hits          95865    95876   +11     
+ Misses       428191   428180   -11     
  Partials      10908    10908           
Flag Coverage Δ
uitests 4.02% <ø> (ø)
unittests 18.99% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrijapanicsb

Copy link
Copy Markdown
Contributor Author

@blueorangutan package kvm

@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb a [SL] Jenkins job has been kicked to build packages. It will be bundled withkvm SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17772

@andrijapanicsb

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@andrijapanicsb

Copy link
Copy Markdown
Contributor Author

@blueorangutan test ol8 kvm-ol8 keepEnv

@apache apache deleted a comment from blueorangutan May 25, 2026
@apache apache deleted a comment from blueorangutan May 25, 2026
@andrijapanicsb

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@andrijapanicsb a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@andrijapanicsb andrijapanicsb added this to the 4.23.0 milestone May 26, 2026
@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-16173)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 50487 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr13126-t16173-kvm-ol8.zip
Smoke tests completed. 151 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@nvazquez nvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrijapanicsb the text on the description looks good, IMO the API must also check the hypervisor type and the importing operation and fail in case it is not passed for KVM import unmanaged instance.

@andrijapanicsb

Copy link
Copy Markdown
Contributor Author

@andrijapanicsb the text on the description looks good, IMO the API must also check the hypervisor type and the importing operation and fail in case it is not passed for KVM import unmanaged instance.

In the UI for Migrating from VMware to KVM etc - there is no option to even select a template - seems we always (or UI does ot) assign the dummy template

image

@sonarqubecloud

Copy link
Copy Markdown

@weizhouapache weizhouapache modified the milestones: 4.23.0, 4.22.2 Jun 29, 2026

@nvazquez nvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

Let's target the PR to branch 4.22 instead of main branch so can get into 4.22.2 as well

@nvazquez

Copy link
Copy Markdown
Contributor

Hi @andrijapanicsb are you ok addressing the comment and rebasing the PR to the 4.22 branch? If not, I can help with that

@DaanHoogland

Copy link
Copy Markdown
Contributor

ping @andrijapanicsb , will you rebase (and apply my suggestion?

…mportUnmanagedInstanceCmd.java

Co-authored-by: dahn <daan@onecht.net>
@nvazquez

nvazquez commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Hi @andrijapanicsb @DaanHoogland - I have rebased the fix to branch 4.22 and applied Daan's suggestion on the parameter description

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@nvazquez

nvazquez commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19189

@nvazquez

nvazquez commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-16962)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 53940 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr13126-t16962-kvm-ol8.zip
Smoke tests completed. 149 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: conflict/waiting

Development

Successfully merging this pull request may close these issues.

Optional templateid param fails for KVM VM import

7 participants